<gm:page title="eventHandlingDemo" >
<!--  <table>
    <tr>
      <td width="50%">
        <gm:list id="myList" data="http://mapnut.com/calstatepark.xml"/>
      </td>
      <td width="50%" valign="top">
        <gm:map id="myMap" data="${myList}" latref="geo:lat" lngref="geo:long" maptypes="true">
          <gm:handleEvent src="myList" event="select" execute="alert('Hello');"/>
        </gm:map>
      </td>
    </tr>
  </table>-->
 
<gm:map id ="Xmap" style="border:solid black 2px" control ="large" maptype="true" data ="${Xlist}"
latref="geo:lat" lngref="geo:long" infotemplate="XmapTemplate">




<gm:handleEvent src ="Xlist" />
</gm:map>
 
<gm:template id ="XmapTemplate">
<div align ="center" repeat="true">
<h3><gm:text ref ="atom:title"/></h3>
</div>
</gm:template>
 
<gm:list id="Xlist" data="http://earthquake.usgs.gov/eqcenter/catalogs/eqs7day-M2.5.xml" pagesize="15" Listtemplate="XlistTemplate">
          <gm:handleEvent src="Xmap" />
        </gm:list>


</gm:page>







